package cn.easy.rest.controller;

import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.servlet.ModelAndView;

import javax.jws.WebParam;

@Controller

public class Demo {
    @RequestMapping("/one")
    public String pg(){
        System.out.println("hello");
        return "index";
    }
    @RequestMapping("/one/two")
    public ModelAndView pg2(){
        ModelAndView modelAndView = new ModelAndView("index");
        return modelAndView;
    }
}
